package com.ithiema.ui;

import java.util.Objects;

public class User {

    private String userName;
    private String password;
    private int count;

    public User() {
    }

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public User(String userName,String password,int count)
    {
        this.userName = userName;
        this.password = password;
        this.count = count;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return count
     */
    public int getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public void setCount(int count) {
        this.count = count;
    }

    public String toString() {
        return "username="+userName+"&password="+password+"&count="+count;
    }


    public boolean equals(User u1) {
        return userName.equals(u1.getUserName())&&password.equals(u1.getPassword());
    }

}
